﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Moki.State
{
    /// <summary>
    /// Notifies registred state controller that state need changes.
    /// </summary>
    internal class StateChangedNotifier : IStateChanged
    {
        public event StateChangedHandler StateChanged;

        public void NotifyStateChanged(StateEventArgs args)
        {
            StateChanged(this, args);
        }

        public void NotifyStateChanged(MockingState state)
        {
            StateChanged(this, new StateEventArgs(state));
        }
    }
}
